<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>返回所支持的过滤器列表</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.filter-list" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">filter_list</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.2.0, PHP 7)</p><p class="refpurpose"><span class="refname">filter_list</span> &mdash; <span class="dc-title">返回所支持的过滤器列表</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.filter-list-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>filter_list</strong></span>
    ( <span class="methodparam">void</span>
   ) : <span class="type">array</span></div>


 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.filter-list-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   返回一个所支持的过滤器的名称的列表，如果没有这样子的过滤器的话则返回空数组。这个数组的索引不是过滤器id，
   你可以通过 <span class="function"><a href="filter_id.html" class="function">filter_id()</a></span> 去根据名称获取它们。
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.filter-list-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-6181">
    <p><strong>Example #1 一个 <span class="function"><strong>filter_list()</strong></span> 的例子</strong></p>
    <div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">filter_list</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
    </div>

    <div class="example-contents"><p>以上例程的输出类似于：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
Array
(
    [0] =&gt; int
    [1] =&gt; boolean
    [2] =&gt; float
    [3] =&gt; validate_regexp
    [4] =&gt; validate_url
    [5] =&gt; validate_email
    [6] =&gt; validate_ip
    [7] =&gt; string
    [8] =&gt; stripped
    [9] =&gt; encoded
    [10] =&gt; special_chars
    [11] =&gt; unsafe_raw
    [12] =&gt; email
    [13] =&gt; url
    [14] =&gt; number_int
    [15] =&gt; number_float
    [16] =&gt; magic_quotes
    [17] =&gt; callback
)
</pre></div>
    </div>
   </div>
  </p>
 </div>


</div></div></div></body></html>